Small fix to support both iOS 5/6 and the upcoming iOS 7.