Fixed graphs not updating data correctly