fix problem with scripting