support GlobalVariablesDeleteAll and fix bug with ticket of PendingOrder