Fix for enum constants being shown as fields.