history-detail bug fix