fix install warning for v6.0+