Fixed bug for null range keys.