Fix log statements