Well, actually it might not be a bug but a rule. There is situations (even in NBA) where fouled out players would be allowed to re-enter the game (especially if the team has not enough players to field).
Zwei Dinge sind unendlich, die Dummheit und das All...