Fix bug with historic