fix the error of missing return in the function call.