- Fixed a small logic error with anomaly generation