fix several bugs, still wrong in priority-donate-multiple