Fix bug in Flow preventing removing all paths from DOM