fixed span bug