Fixed a long standing bug in the PortalGear.cs action queue.