small fix for path of file in file stream