fixed bug with file paths