bugfixes in the script evaluator functions