fix some table loading issues