Fix bug with id in cancelation