fixed reset BUG