Fix appcore-agent