fixed openfile