fix exception on global destroy for Expression