save button bug fixed