fix code style in core/anomaly