fix new cancelstate bug