fix broken spans