Stupid stupid memory alloc

Fixed dumb memory allocation error.