Fixed an initialization bug for aligning same-direction matches