fixed admin check