logging error fix