Fix filenames of error bars
Add assert to filter_metrics