use refid instead of ref name

Change-Id: I499b248b86a370e72b09e73785a13fe7982d74fd