Fixed issue with graphs not resizing correctly