In Shemos 9:6:
"HASHEM carried out this word the next day, and all the livestock of Egypt died, and of the livestock of the Children of Israel not one died." (Artscroll English Tanach)
This was after the fifth plague: the Epidemic.
But we see in Shemos 9:20-21:
"Whoever among the servants of Pharaoh feared the word of HASHEM chased his servants and his livestock to the houses. And whoever did not take the word of HASHEM to heart - he left his servants and livestock in the field." (Artscroll English Tanach).
Now after the Torah said that all the livestock of Egypt died in the fifth plague, it showed that right before the sixth plague there was still some livestock who survived.
Now I checked the Biblia Stuttgartensia, the word for livestock in 9:6 is "miqneh" and in 9:20-21 is "miqnehu" (his livestock).
So is this a contradiction ? if not, how the Rabbis explained this contradiction ?