Fix bug in ES keys<->commits association