Fixing orientation issues.