Small fixes to get the history pages working