Fix for bug with plot filling