Looks like this line was responsible for the problem.