Fixed an issue that delete history does not update UI immedeately