switch to hinge loss.
minor bug fix.