Fixing React warnings.