Fix bug in updating glosses