fix updates for nesterov momentum as well