fixing error in HistoryDoctor Entity