fix handling of empty filter string