fix binary ref