cleanPath bugfix