fix try/catch error