try catch fix