Fixes bug in WORDS

Fixes #39.