fixing the auto rotating fix