A note on consistent anomalies