Fix casing in table selection

This fixes 7d2dc7862eb43d38c069d04072bb721eaddca6a5.