magic encoding fixed.