ebling mis had done his work in an intact library in a ruined world when he had almost located the second foundation ( according to the story which the people of the foundation still believed , but which historians have always treated with reserve ) .