fix for align tool taking into account rotations