fix some anomalies