Fixing unmanaged cases in orientation correction