fixed maxWordLength empty list bug