fix recfun