Allocation bug fix.