fixed i2c check