Fix stupid typo
Fix earlier mistake when factoring log writing