Fixed bug for iPad