Fixed bug in lazysgd loss tracking