Got rid of decimal truncation in width calculation