Providing screen rotation. The second-time error occurs only sometimes.