Fix Bug for Min/Max/STD Match Error and add try/catch