Fix bug with replacing end date in dividendhistory