fix catch error