Fix scripting