Fix values not being properly locked in UI tick()