Clear some bugs in log