fix toggle active state