Fix of 'too many plots' error