Fixed introduced bug with Script