Fix bugs in registration pipelines