fix bug that was almost impossible to hit in prtDataSetInMem.m