Hi John, I added a matrix.removeGaps() call right after constructing my matrix as you suggested, which seems to completely solve the problem. Thanks a lot -Scott