core - fixed ugly typo-bug in allocation selection algorithm