fixed double save error