fix log.ref