small logging bug