Fixes issue with the calculation of the childwidth