bug fixed for plotting the vector field