bug fix of gamma function