Fix bugs in NetPrio.