- fix Agent's constructor bug that kill the agent at first
- format code