fix errencode self