fix broken hex code