fix in encoding