fix the bug of being unable to change color for the current tag