corrected an allocation bug...