fixed select function after save