Fixing generation of history page