fix allocation bug.