fixes for log stats