fixed trend date issue