fix variable when calling script