fix span interface