fix for ios 6