fix the bug of log