Fix bug where unlabeled resources (-1) where being unallocated