fix repeat select bug & update example