reset after detect