Fix admin code