fix bug in open file