Log/ln derivatives fix