bug fixes and some modifications for anomalies editor