Fixed a bug seen in history page.