Fixed repeated words issue