Fix problem with Pathname