fix issue with Encounter#class attribute