Fix bug in preventing the same word twice (case sensitivity problem)