fix duplicate string issue