fixed another threading issue in the orientation stuff