Fixed freeze on iOS 5 when displaying popup