NBA admits to big mistake at end of Mavericks-Pelicans game