Partial fix for graph resizing.