Fixed closing of path issue.