finally fixed reset