compile fixes for the index loop
3 files changed