fix a bug that will create label repeatedly for same string