Fix reseting wrong records