Fixed tiny oopsie in tex1d function.