Fix collection detachment in converting to canvas