Fix misplaced assignment of $alignment_passed