fixed span error