fixed bug that caused number of deletions not to be included.