Fixed ipad bugs