Fix iOS 7.1 flat mode detection bug, close #62