fixed some bugs in dot plotting stuff