fixed filtering by invoice states