fixed reset crash