scripting bugfix