Fixed bug in alignment.