Fix issue when hitting backspace to delete tag