fix API exception when no filter is defined