bug fixed on loss =