Fixed the order of history