That's simply how the game works -- names are not occluded when there's non-geometry (eg a mob) in front.
You can turn names off completely or in certain circumstances, but the game (regardless of the UI you use) will show the names regardless of if there is a mob in front.
__________________
|