Fix php error on update the plugin
Fix previous commit for agentmodule