Bug fix for initializeEntriesVec().