Fixed CBOW implementation