Corrected bad name in the smart.json file
Fixed the compare function