Fix using wrong variable

Change-Id: I1e6ff84cdff0fc0e3f271759e570a7b3576522dd