fixes to pl loss