i2c support fixes