Fix bug where background color is deleted after canceling tag editing