fixed bug with publishing isAdmin