fixed file href when file is not opened