fixed a selector bug