Fixed incorrect key lookup in GetRecord