Temporary fix for graphics bug

This is a temporary fix for plots being corrupted.