Fixed the evaluation of scripts