Fixed weird bugs on ipad