fix error in console log debug wrapper