bugfix in align_sim3