fix inds write