sanitise pattern masks/previous values at pattern start so e.g. atrk-bu modules won't break