Fix terrain rotating when locked