Fix bug with compound indexes having non-field-name names