fixed bug in relative size computations