fix the offset-reset