Fixes syntax errors in try-catch blocks