Fixed isAdmin not working properly