use restore_prio() instead of set_prio()