Solved problem with the second table