Fixed error with eval_closure

Fixed an error with evaluating closures where set was used instead of
extend