Fixed issue where it did not check for exact match, and instead returned the first partial match it found