fix tryCatch