Trying to fix the reaction to a change in orientation.