The Karate Kid Plot holes

Minor Plot hole: At the end of the movie, Dre loses his match in semi-final by having his leg almost broken by his opponent. He is then able to compete several minutes later and AFTER his opponent that went on to the final round lost the championship. What kind of competition is that?