Fixed a bug with parsing the path