fixed small error in span size