deselect before saving