fix errfun bug