fix ecoding bug