fix bug: log