Restoring key range from backup

I am attempting to restore a small key range within a large key space with on the fly prefix change.

The fdbrestore call fails with that assertion being false:

restoreRange.begin.startsWith(removePrefix) && restoreRange.end.startsWith(removePrefix) failed @ /home/foundationdb_ci/src/oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOo/foundationdb/fdbclient/FileBackupAgent.actor.cpp 4699

Is the list of ranges being iterated on built based on the range files present under kvranges in the backup?