Fix resetValues method