Fixed crash bug in iPad.