fixed various bugs related to mass edit