fixed horizontal spanning issue of new elements