Fixes an issue when running on iOS7