Fixed orientation issues.