fix reset behaviour