fix for Xcode5/iOS7