fixed scanner and wordToken error