Fixed resetValue bug