fix for empty log array