Fixing return in mostPriority