As some members pointed out to me, the Team Icons did not show up properly for some people and they were getting the [Moderator]'s icon even though they are just normal members.
After some investigation, I found out that the code did not work properly with Internet Explorer (I myself use Mozilla Firefox). I tried to fix the problem but to no avail. In the end, I decided to modify the code completely (almost) and the Team Icons will only show up in the personal profiles now.
p.s. Internet Explorer sucks BIG time. Wasted much of my time trying to fix the code... :angry: