Fixed the agent queue expire operation