fix issue while editing the api.