fix when a path has spaces