Fixed syntax error in agent