Maths fix for variable widths