fixed build errors of data logging