fix width computations