fix for ios6