fix details bug