fixed init open file problem