fixed a bug in the follow 1D example