Fix bug on ipad