Fix modlog saving