Fix logger issue which affects some windows machines