fix error in previous commit (logfrac function)