fixed bug in alignments