Fixed Bug - Creating Agent