Fixed try catch