fix a issue in ptrSlicer