Dear student, The length of an object changes with temperature but the unit for measuring length (f.e., metre) has now been defined in terms of wavelength of light. This is not affected by temperature. Hence, the choice of length as a fundamental units is justified. Regards