plugin_definition bug on the type of return