fix try catch finally