fixed another bug of log