fix logs' bug