fix priority setting