fixing json issues in plugin_manager