find a bug in catch when typeconvert err