small fixes in plotting routines