fix trycatch