fix one time use of personal agent code