Trains properly, but error is not computing right.