Fix off by one error for cancelling in server instead of clients