Fix admin global

This is a patch that correct some old code for the admin global module