history bugfix