remove the type label when a name is set