Fixed Crashing iSsue.

Crashing issue fixed for Alertview.