rest api: bug fix for the new plugin format