Hack fix for API authentication.