Error when cancelling appointments