fixed remove tag when typing backspace