Fixed bug in agent sls