Fixed grep in plot 4