fix_name_labels function

Fix name labels