Adjust the rotation of gates