Fixed minor logging bug