Referee says flagrant in Raptors-Heat game was a mistake