Yes it was stupid to put your leg up when you're already on a booking, regardless of whether or not he deserved the second card (I think he does, for intention). But I can understand what he did because he was left completely alone in midfield to battle with the Villa players. In the first half, Mata was invisible while Lampard spent most of it more advanced than Ba. Rami just tried too hard to make something happen when the rest of the team was asleep.