Log fix for windows