fixed save and refresh