Fixed some bugs when plotting all the things.