fixed a bug in the priority lookup table