Fixed missing tables bug