Fix logging errr