fixed repeat key word bug