Fixed console logging problem.