fix error in log stmt