fixed small bug with reset