bug fix on trend dates