Fix for weird behavior on Iphones