fixing bugs on trends graph