fix bug in open & save file