fix issue #264
Merge pull request #295 from martinpovolny/fix_priority_group_fix

fix issue #264