Set priority to 0 when empty