Fixes to plot4