Fix really dumb memory allocation bug.