skipgram computation fix and improvement