fixed setAllowedRotations([]) to setAllowedRotations([0])