Fix the blockTypeCounts to be 1 and not 0 when undefined. Idiot.