Fixed orientation bug