Evaluation correction in wrap_function