fix bug displaying log message