Fixed bug with file paths