Fixed twi init function.