fixes save case details bug