fixed the bug in filter_stats to do with bg filtering