Fix a table generation bug for pme-shift