memory fixes in RTA mode