Fix bug of history view