Fix cancel when algorithm is done but dispatcher is still drawing.