The span is problematic. If you wrote some text it will be inside the span. If you just remove it, you will thereby remove the text that you just wrote.