Fixes to portal touch script