fix uncaught notFoundError