Fix bug that clears all not of 'compare' type custom fields.