fix alert view memory issue