fix getPos on undefined error in pathbuilder