fixed bug with relative paths