Fixed bug in InferAlignments.