ScriptPlugin: fix bug with @attribute