Fix duplicate warnings.