fixed error with admin cookie reading