Fixed an issue with a missing variable assignment

The 'path' variable assignment was missing and has been readded.