fixes or cleans up the unspecified match attributes where needed