fixed onload check of words