Fixed small logging bug