Fix cancel fn