attempted to fix graph resizing