Fix a bug where right-clicked task didn't keep background color