Fixing LinearAllocation bug and adding more log