holoirc: fix compile and some corner case bugs