fixed error spans