fixed a bug in alignmentDao