fixed issue with graph not initializing when all data has already been written