span close bug