When I access pma as root through WHM I often gets strange errors like

Code:
Redirecting... (error: TypeError: Result of expression 'top.document' [undefined] is not an object.
It is really annoying and redirects me to a blank page. I then have to push back in my browser twice to get back to a page that is working (Using Safari 4.0.4).

Any ideas or suggestions?