Fixing the generater log bug.