Made slight optimization when calculating the static width