Fixed minor issues with PortalGear.cs