Attempted fix for ios6 closing modal windows