Fixed a bug in printing out the alignments