fixed selector bug