fix state filter in analysis