fix this reset bug