fix bug open file