fix regression: save file didn't work