fixed bug with orientation check
1.0.1