fixed problem with new map code on iPad