Minor fix when remapping references on invalid elements

comments or description might be empty