Fix unclosed paths