fix selector bug