Fixing container allocation bug.