fix Engine#cancel