fixed uncaught exception