Fixing goofy orientation code that causes issues.