Fix agent-build