added a fix with word search storing incorrectly