repair a reset deadline bug
for switch compare testing.