Fix problems when the endpoint settings variable is missing