fix conversion controller index logic