Fixed logging problem.
Fixed another caption bug.