fix losses bug again