some history bugfixes