fix creating openfile without handle