fixed bug in align_ibm1.m