Bug fixed : Agent can't be created if no ID available