Actually get the ID when getting keys to refresh

I should really stop coding, I'm tired