Fix ipad issue