pre iOS 7 fix