fixed error, contextWord -> wordIndex