Found the problem but do not know how to solve it