Fix mistake in colour generation.