Fix logdate issue