Correct silly mistake in memory allocation.