fix a trojan err handling case