fix pseudo-selector bug