Ace editor memory fix