minor bugs in some plotting routines