spm config error, fixed #1023
fix try catch