fix guessing format when file doesnt exist