Fixing orientation bug in fix for mobile