fix wrong ref hilighting, add priority in matchaddpos