Fix some typose in the i2d/d2i functions that