fix state reset not triggering re-initialization