am 76887149: Fix two bugs in cpu_ref

* commit '7688714916905f29362071ce2eb9e296ca469838':
  Fix two bugs in cpu_ref