span bug fix