Fixed an issue with the computation of the alignment array.