fix file saver bug