few plotting bugs fixed