fixed error throwing in history