Fix bug when add history on conversation