changed double-flash to a reset after timeout