Preventing empty filters

Preventing empty filters