corrected the map reloading problem