Fixed gradient bug

BLEU:   0.246010974999
METEOR: 0.33063065246156326