fix span problem