fixed typos in gd trainer