Remove useless warning and make the graph more optimized in old supported cases.