Derby was reinstated as prime minister.