Fixed a variable not being reset on a change to locked region