fix a log error