fixed error of contextWord -> wordIndex