fixed NameError in Lat and Lon Prepared