Fixed various typos in layout glossmark updating code