fixed state change not being detected correctly for flip status