For the first time since 1982, the NBA is sending two teams back to the court for a do-over.

The Atlanta Hawks and Miami Heat must replay the final 51.9 seconds of their game last month because the official scorer ruled incorrectly that Shaquille O'Neal fouled out, the league said Friday.

The Hawks won 117-111 at home in overtime Dec. 19, but strike that one from the books. For now, playoff-contending Atlanta has one less win, while the Heat have one less loss on their miserable record.

"We're human. We make mistakes," Hawks owner Michael Gearon Jr. said. "There certainly wasn't anything malicious about it. We have one of the most senior scoring staffs in the league. They're good. It happened. There's not much we can do about it."