Fix empty filter

Fixes behavior in connection with public api