fix dps_loss calc