fixed bug preventing admin access