handling missing 'weight' property in GML, code formatting