Fix positions on rotation for iOS 7+
a bug-fix on demo when dismissing the controller