Fix helper to get key.