Using wrong argument.

This fixes #39.
Some further small security fixes.
Merge pull request #40 from endlesssoftware/issue-39

Fixes bug in WORDS