fix bug with file path