fix i2c structure