Fixed named scripts not running correctly