fixed reset and clear