Fixed problem with UnauthorizedError not being transported properly