fixed bug in the HistoryController mass delete