Fixed indices

Index fixes for X vector and I_in