fix bug with nonuniformly spaced tlist array.