fix bug with file