fix crash on empty filter