Instead of using Invisible Fence, which shocks pets if they cross an invisible boundary, do boundary training using positive reinforcement methods (you'll likely need professional help). I lost count how many times folks told me that Invisible Fence did not work for their dogs (all Huskies, btw), as their dog panicked and ran away while being shocked, not understanding.