fix try-catch-finally error