Fixed duplicate 'path' variable