fixed a mistake in the plot