Fix bug with empty filter