Fix orientation change bug

Fixes Issue #1 of original repo
Merge pull request #3 from marvinlabs/master

Fixing orientation change bug nicely