Fixed KeyRange object and associated references.