fix log ref err