fixed bug in align