double reset, errors
fix double reset error.