bug fix in lattice ioc