fixed crash showing alert and actionsheet on an iDevice