Fix bug passing hard-coded cancel value