fixed lmgamma