Fix error on reset (?!?!?!)