Fixed bug with alignment output