fixed bug for trends