Fixed bug on align_ibm1.m