i have noticed that offensive fouls counted into team fouls in the game.
is that some kind of bugs?
I don't know if it's a "bug," as they probably thought that was the correct way to program it.
However, as you note, it's wrong. :) In the NBA, offensive fouls do not count as team fouls. Since this game is supposed to be based on NBA rules, they shouldn't count here, either.