fixed bug that resulted in words having only a maximum of maxlen-1 characters