Fix a few issues in the to_process() handling.