fix log output