Fixed a bug with relative paths