Dispenser not shutting off

Our fridge water dispenser does not shut off randomly. Sometime it works ok. Every few times I use it the water just continues to dispense but does not click back to shut off. I have unplugged the fridge and the water still continues to dispense. Would I need to replace the board for this fix?