Fix bug in history.html template