fixed double save button bug on startup