Small logging bug fixed