Fix logging string