fix embarassing bug where histories were incorrect