fix for ios5