Fix log output