fixes selector bug