Quote from ShefkiIt should work then. What makes you think that the text is displaying the wrong power/health?
That's a picture of my unitframes:
At the bottom is my player frame, above my target frame.
On the left health, on the right mana.
As you can see the values for health are totally wrong and different from the ones in the target frame.
But I don't know why and I can see no error in the lua code...