Fixes a worng admin check.

Fixes a worng admin check.