Fix various defects for bulk edit.