fixing an unclosed <path>