Training words calculation fixed