span error solved