fixed a bug on create alignment controller