Fix for ios6