Fixed issue with priority dipatcher