Same here (double yellow). I think developers programmed that feature after noticing how often it happens in real life.
So, now I always immediately substitute all players with yellow cards during the match.