fix logs error bug