Fixed reference error to other history in encounter views.