fix toggle at resync issue