fix some logic errors cause Sandbox fail in multi-engine mode;fix @escape() fail;fix @locale() fail:#133