Yes, you are correct and in which case a booking for Hughes might have contributed to a later red. My point about the referee’s nightmare spell still stands
The referee had a nightmare 5 minutes - missed the foul on Maupay for the penalty, failed to book Gallagher for the said foul, let the penalty be taken with the flare going off nearby, then missing the foul for our disallowed goal.