fix problem with pen lifting codes getting disturbed by origin displacements