! fixed bug where cref field for master lock was not being reset on format