fixed duplicate counting of dividends