Sorry I didn't post code originally! It was a stupid error on my part, as it turned out -- when I was constructing the MPS in a loop, I didn't take into account the different index id numbers, so the construction was invalid. After I realized the problem, it was straightforward to fix. Sorry for spamming the message board.