Fix to PositionInvite Code generator