bug in script code completion