fix orientation before caching preview