fixed a sad mistake which causes the server to die during runagent