minor logging bug