Minor bug in calculating difference between mask characters between old and new field values