Fix priority index not being set correctly
Merge pull request #634 from kenzierocks/hotfix/priority-index-reset

Fix priority index not being set correctly