Typo fix.
Move logging statement for state reset.