- fixing logging bug