Remove spurious log2 from ESA
Fix NaN handling in Loess