fixed next day log bug