Fix variable name in allocate()