potential fix for uncaught error