fixed try catch sintax error