fixed bug using moveordering in thw wrong place