Fixed a bug in the Admin Key Auth Handler