fix duplicate names appearing for tab completion