patch for Eagle XHR bug