Correct width detection