Corrected an error where the last number in an object would not be matched.