TableExists fix