small fix for log