fix save close action