fix bug (log)