priority selector bug fix