fix time dimension issue