fixed y-coordinate in debug plot.