Bug fixes in dividends