Done with the function of leaving a circle and fix some related issues in the side of the API.