Fixing KeyError on authweb