fix binary ref to revision