Fixed issue with rotation gates not saving properly.