logging bug fixed