Added log to see where the problem is