fix crash issue on iPad for delete menu