Fix logging statements