Fixed check of admin when reloading page