[BUGFIX] Fix negative pid when doing a positioned insert