Fixed issue #2. Should normally work on iOS 6.