fixed _reset function