Fixed small logging bug.