bug fix : empty history cause history table view crash