write answer history bugfix