Fixing bug - PathExtensions