Fixing a glitch setting current value of model