Fix scripting pipeline bug