Fix for scrollbar when trend is updated