hotfix problem with AuthenticationError context serialization