fix issue (encode error)