corrected map and table refresh bug