fix i2c master mode