fixed reset problem