I think the corner deserves most of the blame for not stopping it, but the ref should have stepped in by the 10th or 11th round.