log10 fixes