fix error in log