Major fix for plot5