Fixed a stupid memory allocation error.