catch exception when invalid filter is used