Fixed permanentl closed path bug