Fix auto rotate