Fix mistake in table generation