Finally found the problem