fix time series but histogram still buggy