fix problems caused by irregular logs