[MODIFY] cope with uncaught error