Fixes crash on iOS 7.0