Fix for ios 7