fixed ice encoding