fix escape bug