gradients are not updated to model.syn0

Looks like the gradients are not updated to model.syn0. This PR simply fixes it.