Fixed admin check error