fix several priority bugs